package com.csun.cmny.provider.service;


import com.csun.cmny.provider.pojo.CacType;

import java.util.List;

public interface CacTypeService {
    /**
     * 添加类别
     * author:liqian
     * date:2018-10-30 11:58
     */
    int insert(CacType cacType);

    /**
     * 根据类别id修改类别
     * author:liqian
     * date:2018-10-30 13:52
     */
    int update(CacType cacType);

    /**
     * 根据类别id查询类别
     * author:liqian
     * date:2018-10-30 13:55
     */
    CacType selectCacTypeById(Integer cacTypeId);

    /**
     * 根据类别id删除类别
     * author:liqian
     * date:2018-10-30 13:58
     */
    int delById(Integer cacTypeId);

    /**
     * 查询CacType
     * author:liqian
     * date:2018-10-30 16:03
     */
    CacType selectByCacType(CacType cacType);

    /**
     * 根据homeId查询机构的所有类别及类别下的大项及大项下的小项
     * author:liqian
     * date:2018-10-31 16:17
     */
    List<CacType> selectShowAll(Integer homeId);

    /**
     * 根据类别id查询单个类别及类别下的大项及大项下的小项
     * author:liqian
     * date:2018-11-01 14:53
     */
    CacType selectOneById(Integer cacTypeId);
}
